package com.zhiyou100.service;

import java.util.ArrayList;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou100.dao.ProjectDao;
import com.zhiyou100.model.Detail;
import com.zhiyou100.model.Project;
import com.zhiyou100.param.ProjectDetail;
import com.zhiyou100.param.ProjectList;
import com.zhiyou100.param.QueryCondition;

import vo.Pagevo;
@Service
public class ProjectServiceImpl  implements ProjectService{
       
	@Autowired
	private ProjectDao projectDao;

	@Override
	public ProjectDetail findById(Integer id) {
		// TODO Auto-generated method stub
		return projectDao.findById(id);
	}

	@Override
	public void saveProject(Project project) {
		
		projectDao.saveProject(project);
		
	}

	@Override
	public void saveDetail(Detail detail) {
		
		projectDao.saveDetail(detail);
		
	}

	@Override
	public void updateProject(Project project) {
		
		projectDao.updateProject(project);
		
	}

	@Override
	public void updateDetail(Detail detail) {
		
		projectDao.updateDetail(detail);
		
	}

	@Override
	public void deleteProject(Integer id) {
		
		projectDao.deleteProject(id);
	}

	@Override
	public void deletDetail(Integer projectId) {
		
		projectDao.deletDetail(projectId);
	}

	@Override
	public ArrayList<ProjectList> list(QueryCondition queryCondition) {
		
		return projectDao.list(queryCondition);
	}

	

}
